import { Component, Injector } from '@angular/core';
import { IonicPage, NavController, NavParams } from 'ionic-angular';
import { BasePage } from "../basePage";
/**
 * Generated class for the ShopShowPage page.
 *
 * See https://ionicframework.com/docs/components/#navigation for more info on
 * Ionic pages and navigation.
 */

@IonicPage()
@Component({
  selector: 'page-shop-show',
  templateUrl: 'shop-show.html',
})
export class ShopShowPage extends BasePage {
  modalCtrl: any;
  showList = [];
  navParams: any;
  constructor(injector: Injector, params: NavParams, ) {
    super(injector);
    // this.navParams = params.;
    this.showList = params.data;
    console.log(params.data);

  }

  ionViewDidLoad() {
    console.log('ionViewDidLoad ShopShowPage');
  }


  /**跳转 到立即购买 */
  toShopInfo() {
    // this.navCtrl.push('PromptlyBuyPage');
    let modal = this.modalCtrl.create('ShopInfoPage');//PromptlyBuyPage  ShopInfoPage
    modal.present();
  }

}
